class_name OutlineHighlighter
extends Node

# ===============================================

@export var visuals: CanvasGroup
@export var outline_color: Color
@export_range(1, 10) var outlint_thickness: int

# ===============================================

func clear_highlight() -> void:
	visuals.material.set_shader_parameter("line_thickness", 0)


func highlight() -> void:
	visuals.material.set_shader_parameter("line_thickness", outlint_thickness)

# ===============================================

func _ready() -> void:
	visuals.material.set_shader_parameter("line_color", outline_color)
